﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using aier.dataaccess.dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.dapper
{
    [TestClass()]
    public class DoctorDalUT
    {
        private DoctorDal doctorDal = null;

        [TestInitialize]
        public void Init()
        {
            doctorDal = new DoctorDal();
            doctorDal.dapperHelper = new DapperHelper();
        }

        [TestMethod()]
        public void QryDoctorListUT()
        {
            var obj = doctorDal.QryDoctorList(string.Empty, Guid.Empty, new Guid("0268B153-33AA-E411-80B6-00155D94EE04"),false);
            Console.WriteLine(obj.Count());
        }

        [TestMethod()]
        public void QryDoctor() {
            DoctorDal doctorDal = new DoctorDal();
            doctorDal.dapperHelper = new DapperHelper();
            //List<ContactView> doctorList = 
            doctorDal.QryDoctorList(null, new Guid("01BA932E-FCC1-E611-80E9-F1405F382DB7"), Guid.Empty, false).ToList();
            //List<GroupResult<ContactView>> groupResults = GroupData(doctorList);
        }
    }
}